package com.zhijiaoyun.dao;

import java.util.List;

import com.zhijiaoyun.dao.core.IBaseDao;
import org.apache.ibatis.annotations.Param;

import com.zhijiaoyun.model.WebsiteLink;

/**
 * @author shisfish
 * @date 2017/6/6
 */
public interface IWebsiteLinkDao extends IBaseDao<WebsiteLink> {

	WebsiteLink selectWebsiteLinkByName(String name);

	WebsiteLink selectWebsiteLinkByLinkUrl(String linkUrl);

	WebsiteLink selectWebsiteLinkByNameNotLinkId(@Param("linkId") long linkId, @Param("name") String name);

	WebsiteLink selectWebsiteLinkByLinkUrlNotLinkId(@Param("linkId") long linkId, @Param("linkUrl") String linkUrl);

	int countByParams(@Param("name") String name, @Param("linkUrl") String linkUrlname);

	List<WebsiteLink> pageByParams(@Param("beginIndex") int beginIndex, @Param("pageSize") int pageSize,
			@Param("name") String name, @Param("linkUrl") String linkUrl);
}